import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home/index'
import result from '@/components/result/result'
import product from '@/components/product/product'
import inquire from '@/components/result/inquire'
import personal from '@/components/personal/personal'
import aftersale from '@/components/aftersale/aftersale'
import applyfor from '@/components/applyfor/applyfor'
import express from '@/components/express/express'
import details from '@/components/details/details'
import identity from '@/components/identity/identity'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',name: 'home',component: home,meta: {index: 1, title: '产品绑定'}},
    {path: '/result',name: 'result',component: result,meta: {index: 2, title: '查询结果'}},
    {path: '/product',name: 'product',component: product,meta: {index: 3, title: '我的产品'}},
    {path: '/inquire',name: 'inquire',component: inquire,meta: {index: 4, title: '查询结果'}},
    {path: '/personal',name: 'personal',component: personal,meta: {index: 5, title: '个人信息'}},
    {path: '/aftersale',name: 'attersale',component: aftersale,meta: {index: 6, title: '我的售后'}},
    {path: '/applyfor',name: 'applyfor',component: applyfor,meta: {index: 7, title: '申请售后'}},
    {path: '/express',name: 'express',component: express,meta: {index: 8, title: '填写快递单号'}},
    {path: '/details',name: 'details',component: details,meta: {index: 9, title: '售后详情'}},
    {path: '/identity',name: 'identity',component: identity,meta: {index: 10, title: '产品绑定'}},

  ]
 
})




